package com.yan.furns.service.impl;

import com.yan.furns.dao.AdminDAO;
import com.yan.furns.dao.impl.AdminDAOImpl;
import com.yan.furns.entity.Admin;
import com.yan.furns.service.AdminService;

/**
 * @author Yzb
 * @version 1.0
 */
public class AdminServiceImpl implements AdminService {
	AdminDAO adminDAO = new AdminDAOImpl();
	@Override
	public Admin query(String username, String password) {
		return adminDAO.getAdminByUsernameAndPassword(username, password);
	}
}
